package com.yuanfengerp.Analysis.dao;

import com.yuanfengerp.Analysis.model.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
@Mapper
public interface IDepartmentDao {
    //查询全部部门
    ArrayList<Department> getDepartmentList(@Param("pageSize") Integer pageSize, @Param("offset") Integer offset);
    //查询单个部门
    ArrayList<Department> getDepartment(@Param("department_Number") String department_Number);
    //新增部门
    int addDepartment(Department department);
    //修改部门
    int updateDepartment(Department department);


}